<?php
	require_once($_SERVER["DOCUMENT_ROOT"]."/alerter/modules/security_mod.php");
	require_once($_SERVER["DOCUMENT_ROOT"]."/alerter/modules/alert_mod.php");
	
	SecurityMod::login();
	
	if (!isset($_SESSION["alert_account"])) {
		print('Invalid user');
		SecurityMod::logout();
	}
	
	//////////////////////////////////////////////////
	//Temporary dummy data generation:
	//////////////////////////////////////////////////
	//$alerts = 'UF 3-555;Carolus Rex:5,10;Maruin:10,5;Zac Rogers:10,5;Slam Ruler:6,8;4|Aya:Lucky6,5;Luschn:5,4:2';
	//print($alerts);
	$alerts = AlertMod::getThreats();
	print($alerts);
	//////////////////////////////////////////////////	

	
	//print($uname . " " . $validation);
	
	//print("uniqid(): \r\n" . uniqid("php_", true));
?>